package com.zrf.gulimall.ware.feign;

import com.zrf.gulimall.commnon.core.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author zhanrf
 * @Date 2021/12/14 22:23
 */
@FeignClient("service-product")
public interface ProductFeignService {
	/**
	 * 调用商品服务，查询商品信息
	 * @param skuId 商品id
	 * @return 响应对象
	 */
	@RequestMapping("/product/skuinfo/info/{skuId}")
	R skuInfo(@PathVariable("skuId") Long skuId);
}
